package com.conoic.sxs.xcj.gateway;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author xcj
 */
@SpringBootApplication
public class XcjServletInitializer extends SpringBootServletInitializer {

    private static final Logger logger = LoggerFactory.getLogger(XcjServletInitializer.class);


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {

        logger.info(">>>>>>>>>> Sit down everyone. I'm going to pull out the configuration <<<<<<<<<<");

        logger.info(">>>>>>>>>> Pull out the configuration successfully. You can play happily <<<<<<<<<<");
        return super.configure(builder);
    }

    public static void main(String[] args) {
        SpringApplication.run(XcjServletInitializer.class, args);
    }
}
